﻿@model IEnumerable<DataAccess.Datatypes.Site>

@{
    ViewBag.Title = "Manage Sites";    
}

<div style="width: 100%; float:left; position:relative; top: 60px; margin-left: 60px;  margin-bottom: 60px;"> 
    <h2 class="blue-font-title" style="margin-left: 0;">Manage Sites</h2>
    <table>
        <tr>
            <th>
                <b>@Html.Label("Site Name")</b>
            </th>
            <th>
                 <b>@Html.Label("Site Administrator")</b>
            </th>
            <th></th>
        </tr>

    @foreach (var item in Model) {
        <tr>
            <td>
                @Html.ActionLink(item.Name, "Index", new { area = "", Controller = (string)item.Name })
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.AdminId)
            </td>
            <td>
                <b>@Html.ActionLink("Edit", "Edit", new { id=item.id })</b>
            </td>
        </tr>
    }

    </table>
    <div>
        <p class="blue-font not-transform-text">
            @Html.ActionLink("Create New", "Create")
        </p>
    </div>
</div>